package com.taotao.sso.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.sso.service.UserRegisterServcie;

@Controller
public class UserRegisterController {
	@Autowired
	private UserRegisterServcie userRegisterServcie;
	
	@RequestMapping("/user/check/{param}/{type}")
	@ResponseBody
	public TaotaoResult getUserRegister(String param,int type){		
		TaotaoResult result = userRegisterServcie.getUserInfo(param, type);
		return result;
	}
	
}
